@import url(https://fonts.googleapis.com/css?family=Droid+Sans+Mono|Open+Sans:300,600);

body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
}
body.iframed {
  background-color: #f6f6f6;
}
html, body {
  margin: 0;
  padding: 0;
}
.CodeMirror {
  font-family: 'Droid Sans Mono', monospace;
}
.CodeMirror-gutters {
  background-color: #eeeeee;
  border-right: 0;
}
.CodeMirror-linenumber {
  color: #c1c1c1;
}
.project-editor {
  background-color: #f6f6f6;
  padding-right: 52px;
}
.project-title {
  color: #313131;
  text-transform: uppercase;
  font-weight: bold;
  height: 40px;
  line-height: 48px;
  margin-left: 20px;
}

.source-main-container.with-sidebar {
  margin-left: 156px;
}


HTML, BODY {
}

BODY {
}

A:hover {
  text-decoration: none;
  /* fix ng-click anchor link cursor */
  cursor: pointer;
}

IFRAME {
  display: block;
  border: none;
}

PRE {
  word-break: break-word;
}

.cover-everything {
  position: absolute;
  left: 0px;
  top: 0px;
  right: 0px;
  bottom: 0px;
  z-index: 2147483647;
}

.lightbox {
  background: #fff;
  opacity: 0.95;
  width: 100%;
  height: 100%;
  text-align: center;
}

  .lightbox-msg {
    position: relative;
    font-size: 1.5em;

    /* center horizontally */
    width: 90%;
    margin-left: -45%;
    left: 50%;

    /* place vertically */
    top: 10%;
  }

.context-menu {
  position: absolute;
  margin-left: -2em;
  margin-top: -.5em;
  z-index: 1000;
  padding: .5em;
  background-color: #e9e9e9;
}

  .context-menu DIV:hover {
    cursor: pointer;
    background-color: #c5d7ef;
  }

TABLE {
  border: 1px solid #c5d7ef;
  border-collapse: collapse;
  empty-cells: show;
  margin: 1em .5em .5em 1em;
}

  TR {
    border: 1px solid #c5d7ef;
  }

  TR.even {
    background-color: #e9e9e9;
  }

  TH {
    background-color: #c5d7ef;
  }

  TH, TD {
    padding: 0px;
    margin: 0px;
    text-align: left;
    padding: .35em 1em .25em .35em;
  }

.experimental {
  color: #f00;
  top: -0.9em;
  position: relative;
}

.filestatus {
  color: #ccc;
  margin: 0em 2em;
  min-height: 2em;
}

.space-above {
  margin-top: 2em;
}

#navheader {
  color: #aaa;
}

.current-file-path {
  font-weight: bold;
  color: #777;
  display: inline-block;
  white-space: nowrap;
}

#navheader, .current-file-path {
  line-height: 24px;
  margin-top: 5px;
}

#nav {
  position: absolute;
  width: 156px;
  top: 0;
  bottom: 0;
}

  #nav #filelist {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: show;

    padding-top: 4px;
    font-size: 12px;
    line-height: 22px;
  }

    #nav #filelist A {
      color: #717171;
    }

    #nav #filelist .fileentry {
      cursor: pointer;
      overflow: hidden;
    }

    #nav #filelist .fileentry.selected a {
      color: #4285f4;
    }

    #nav #filelist .fileentry a:hover {
      color: #5c96f5;
    }

      #nav #filelist .fileentry .filename , #nav #navheader .project_name {
        display: inline-block;
        width: 160px;
        overflow: hidden;
        white-space: nowrap;

        margin-left: 20px;
      }
      #nav #filelist .newthing {
        margin-left: 20px;
      }

      #nav #filelist .fileentry.selected .filename {
        font-weight: bold;
      }

    #nav #filelist .newthing {
      color: #1155cc;
    }

  #nav .dropdown {
    text-align: right;
    width: 20px;
    display: inline-block;
  }

    #nav .dropdown A {
      color: #555;
    }

    #nav .dropdown A:hover {
      color: #00c;
      background-color: #cce;
    }

.runlink {
  display: inline-block;
}

.newthing {
  color: #1155cc;
}

.project_row {
 vertical-align: top;
}

.project_name {
  font-weight: bold;
  width: 20em;
}

.project_description {
  width: 30em;
  white-space: pre-wrap;
}

.template {
  padding-bottom: 0.4em;
}
  .template_name {
    font-weight: bold;
    width: 30em;
  }

  .template_description {
    width: 30em;
  }

#container {
  position: relative;
  height: auto;
  min-height: 100%;
}

.notsafe {
  color: gray;
}

#header {
  margin: 5px;
  border-bottom: 1px solid #ccc;
}

  .iframed #header {
    border: none;
  }

#header .header-logo {
  float: left;
  margin-right: 10px;
}

#header .header-logo-line {
  line-height: 60px;
  height: 48px;
}

#header .header-product-text {
  font-size: 2em;
  font-weight: bold;
  color: #000 !important;
  text-decoration: none;
}

  #header .header-product-text .app-back {
    color: #ddd;
    font-size: 0.9em;
    vertical-align: top;
  }

  #header .header-product-text:hover .app-back {
    color: #555;
  }

  #header .topbar {
    position: absolute;
    right: 0em;
    top: 0em;
  }

    #header .topbar DIV {
      display: inline-block;
    }

    #header .topbar SPAN {
      margin: 0.4em;
    }

  #main {
    /* bottom padding should be at least footer height */
    padding: 0em 1em 4em;
  }
  .iframed #main {
    padding: 0px;
  }

  #footer {
    width: 100%;
    position: absolute;
    bottom: 0;
    border-top: 1px solid #ccc;
    padding: 1em 0em 0.5em;
  }

.diag {
  color: #ccc;
  display: inline-block;
}

.adminlinks {
  color: #999;
  display: inline-block;
  float: right;
}

  .adminlinks > SPAN {
    margin: 0.4em;
  }

.admin {
  color: gray;
}

BUTTON.admin > I[class^="icon-"],
BUTTON.admin > I[class*=" icon-"] {
  opacity: 0.3 !important;
}

#source-container {
  /* compact, for low-res laptop presentations */
  height: 165px;
}

.iframed #source-container {
  height: 270px;
}

  #source-container .source-code {
    background-color: #f8fafc;
    height: 100%;
  }

  #source-container IMG {
    background: url(/playground/img/checker.png) repeat;
    display: block;
    border: 3px dotted #444;
  }

#source-container SELECT {
  width: 400px;
}

.CodeMirror {
  height: 100%;
  line-height: 1.25em;
}

  .CodeMirror-scroll {
    height: 100%;
  }

.control-iframe {
  width: 100%;
  height: 1em;
  border: none;
}

#output-iframe {
  width: 100%;
  height: 17em;
}

  #output-iframe > DIV {
    left: 0px;
    right: 0px;
    top: 0px;
    bottom: 0px;
    height: 100%;
  }

  #output-iframe > DIV > IFRAME {
    width: 100%;
    height: 100%;
    background-color: white;
  }

.hidden {
  display: none;
}

.dirtymarker {
  opacity: 0.3;
}

.ghost {
  opacity: 0.5;
}

.alert-pre DIV {
  white-space: pre-wrap;
}

.alert-no-margin {
  margin: 0px;
}

.loading {
  font-size: 1.5em;
  line-height: 2em;
  color: #888;
}

.form-reduced-margin {
  margin-bottom: 2px;
}

.alert-reduced-margin {
  margin-bottom: 2px;
}

.btn-height {
  height: 27px;
}

.btn.pull-left {
  margin-right: 5px;
}

.btn.pull-right {
  margin-left: 5px;
}

.template_container {
  width: 80%;
}

[class^="icon-"], [class*=" icon-"] {
  vertical-align: text-bottom;
}

/* enable flexbox layout */
.form-inline.url-container {
  display: -moz-box;      /* OLD: Firefox (buggy) */
  display: box;           /* OLD */
  display: -ms-flexbox;   /* MID: IE 10 */
  display: -webkit-flex;  /* NEW, Chrome 21+ */
  display: flex;          /* NEW: Opera 12.1, Firefox 22+ */
}

.form-inline.just-url-button {
  height: 52px;
}

.url-bar {
 -webkit-flex: 1 1 auto;
 -ms-flex: 1 1 auto;
 box-flex: 1;
 flex: 1 1 auto;
 width: 90%;
}

.url-button {
  height: 30px;  /* same as URL input bar */
}
.just-url-button .url-button {
  height: 28px;
  width: 84px;
  margin-top: 12px;
}

.login-button {
  margin-right: 15px;
}

.ae-logs {
  font-family: monospace;
  font-size: 0.9em;
  line-height: 1.5em;
  max-height: 20em;
  overflow: hidden;
}

.ae-logs-timestamp {
}

.ae-logs-message {
}

.ae-logs-severity {
  width: 1.2em;
  line-height: 1.2em;
  border-radius: 2px;
  text-align: center;
  font-weight: bold;
  display: inline-block;
}
  .ae-logs-severity-DEBUG {
    background-color: #09f;
  }
  .ae-logs-severity-INFO {
    background-color: #3c0;
  }
  .ae-logs-severity-WARNING {
    background-color: #fd0;
  }
  .ae-logs-severity-ERROR {
    background-color: #f90;
  }
  .ae-logs-severity-CRITICAL {
    background-color: #f22;
  }

.pg-resizer {
  cursor: move;
  background-color: #eee;
  border-top: 1px solid #fff;
  border-bottom: 1px solid #fff;
  padding: 1px 0 2px;
  margin: 0px 0 10px;
}
  .pg-resizer:hover {
    background-color: #ddd;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
  }

.read-only .CodeMirror {
  background: #f7f7f7;
}

.iframed .modal-backdrop {
  background-color: #ffffff;
}

.download-btn {
  height: 29px;
}
